/* ===== 认证页面全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f5f5f5;
    line-height: 1.6;
    color: #333;
}

/* ===== 顶部导航栏 ===== */
.auth-header {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 100;
}

.top-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-2px);
}

.logo-text {
    font-size: 26px;
    font-weight: 700;
    color: #ff5722;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #ff5722, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sub-nav a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sub-nav a:not(.home-link):after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff5722;
    transition: width 0.3s ease;
}

.sub-nav a:hover:not(.home-link) {
    color: #ff5722;
}

.sub-nav a:hover:not(.home-link):after {
    width: 100%;
}

.sub-nav .active {
    color: #ff5722 !important;
}

.sub-nav .active:after {
    width: 100% !important;
}

.home-link {
    background: #f0f0f0;
    padding: 8px 20px;
    border-radius: 4px;
    margin-left: 15px;
    transition: all 0.3s;
}

.home-link:hover {
    background: #ff5722;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.2);
}

/* ===== 认证卡片容器 ===== */
.auth-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 25px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    margin: 0 auto;
    transform: translateZ(0);
    transition: transform 0.3s, box-shadow 0.3s;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.auth-card h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.auth-card h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #ff5722, #ff9800);
    border-radius: 3px;
}

/* ===== 表单元素 ===== */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: #fafafa;
}

.form-group input:focus {
    border-color: #ff5722;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2);
    outline: none;
    background-color: white;
}

.error-message {
    color: #ff5722;
    font-size: 13px;
    height: 18px;
    margin-top: 5px;
    display: block;
}

.form-group input.error {
    border-color: #ff5722;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(5px); }
    40%, 80% { transform: translateX(-5px); }
}

/* ===== 按钮样式 ===== */
.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #ff5722, #ff9800);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.auth-btn:hover {
    background: linear-gradient(to right, #ff4500, #ff5722);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

/* ===== 底部链接 ===== */
.auth-links {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.auth-links a {
    color: #ff5722;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.auth-links a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ff5722;
    transition: width 0.3s;
}

.auth-links a:hover:after {
    width: 100%;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .top-bar {
        padding: 0 20px;
        height: 70px;
    }

    .logo-text {
        font-size: 22px;
    }

    .sub-nav {
        gap: 15px;
    }

    .sub-nav a {
        font-size: 14px;
    }

    .home-link {
        padding: 7px 16px;
        margin-left: 10px;
    }

    .auth-container {
        margin: 30px auto;
        padding: 0 20px;
    }

    .auth-card {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    .logo-container {
        margin-bottom: 15px;
    }

    .sub-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .home-link {
        margin: 10px 0 0;
        order: 3;
        width: 100%;
        text-align: center;
    }

    .auth-card {
        padding: 25px 20px;
        border-radius: 10px;
    }

    .auth-card h2 {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .form-group input {
        padding: 11px 14px;
    }

    .auth-btn {
        padding: 13px;
    }
}